<?php get_header(); ?>
	<div id="contentBody">
		<?php
			//Load youtube
			include('youtube.php');
		?>
		<div id="primaryTop">
			<div id="maincontent">
				<!-- featured entries -->
				<div id="slider2">
					<div id="paginate-slider2" class="pagination"></div>	
					<div class="sliderwrapper">
						<?php $query1 = new WP_Query();$query1->query('showposts='.$trns_options["feaPostCount"].'&cat='.$trns_options["featuredCatID"]); ?>
						<?php while ($query1->have_posts()) : $query1->the_post(); ?>	
						<div class="contentdiv">
							<div class="sliderPostPhoto">
								<?php /* If there is an attached video */ $key = 'video'; $themeta = get_post_meta($post->ID, $key, TRUE); if($themeta != '') { ?>
									<object type="application/x-shockwave-flash" style="width:342px; height:256px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
									<param name="wmode" value="opaque" /><param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object> 
								<?php } ?>
						
								<?php /* If there isn't a video attached */ $key = 'video'; $themeta = get_post_meta($post->ID, $key, TRUE); if(!$themeta) { ?>
									<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php viva('trnsFeatured','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
									<div class="sliderPostInfo"><h2 class="feaSliderTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2></div>
								<?php } ?>
							</div>
							
							
							<div class="featuredPost lastPost">
								<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 33); ?>...</p>
								<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
							</div>
						</div>
						<?php endwhile; wp_reset_query(); ?>
					</div>
					
					<div id="belowSlider">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopLeft1') ) : ?>
						<?php endif; ?>
					
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopLeft_R') ) : ?>
							<a class="titleCatName" href="<?php echo get_category_link($trns_options["fea2CatID"]);?>"><?php echo get_cat_name($trns_options["fea2CatID"]); ?></a>
							<?php $que2=1; $query2 = new WP_Query();$query2->query('showposts='.$trns_options["fea2PostCount"].'&cat='.$trns_options["fea2CatID"]); ?>
							<?php while ($query2->have_posts()) : $query2->the_post(); ?>
								<div class="featuredPost<?php if ($que2 == $trns_options["fea2PostCount"]) { ?> lastPost<?php } ?>">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
									<p><a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php viva('trnsFeaturedBottom','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="alignleft"/></a><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 28); ?>...</p>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>					
								</div>
							<?php $que2++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
						
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopLeft2') ) : ?>
						<?php endif; ?>					
					</div>
					<script type="text/javascript">
						featuredcontentslider.init({
						id: "slider2",  //id of main slider DIV
						contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
						toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
						nextprev: ["<?php echo $trns["prev"]; ?>", "<?php echo $trns["next"]; ?>"],  //labels for "prev" and "next" links. Set to "" to hide.
						revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
						enablefade: [true, 0.4],  //[true/false, fadedegree]
						autorotate: [<?php echo $trns_options["rotate"]; ?>, <?php echo $trns_options["rotatetime"]; ?> ],  //[true/false, pausetime]
						onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
							//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
							//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
							}
						})
					</script>				
				</div><!-- End of slider2 -->
				
				
				<div id="primaryTopMid">
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopMid1') ) : ?>
					<?php endif; ?>	
					
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopMid_R') ) : ?>
						<a class="titleCatName" href="<?php echo get_category_link($trns_options["fea3CatID"]);?>"><?php echo get_cat_name($trns_options["fea3CatID"]); ?></a>
						<?php $que3=1; $query3 = new WP_Query();$query3->query('showposts='.$trns_options["fea3PostCount"].'&cat='.$trns_options["fea3CatID"]); ?>
						<?php while ($query3->have_posts()) : $query3->the_post(); ?>	
						<div class="featuredPost<?php if ($que3 == $trns_options["fea3PostCount"]) { ?> lastPost<?php } ?>">
							<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
							<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php viva('trnsFeaturedRight','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="alignright"/></a>
							<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 17); ?>...</p>
							<div class="clear"></div>
							<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
						</div>
						<?php $que3++; endwhile; wp_reset_query(); ?>
					<?php endif; ?>	
	
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryTopMid2') ) : ?>
					<?php endif; ?>
				</div><!-- /primaryTopMid -->
				
			</div><!-- /maincontent -->

			<div id="primaryTopSidebar">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-TopSidebar1') ) : ?>
				<?php endif; ?>
					
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-TopSidebar_R') ) : ?>
				<?php include( TEMPLATEPATH . '/sidebarTop.php' ); ?>
				<?php endif; ?>
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-TopSidebar2') ) : ?>
				<?php endif; ?>
			</div><!-- /primaryTopSidebar -->
			<div class="clear"></div>
		</div><!-- /primaryTop -->
		<div class="clear"></div>
		
		<?php if($trns_options['enableMediaGallery'] == 1) { ?>
		<div id="videos">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('MediaBar_R') ) : ?>
				<h2 class="videoBarTitle"><span><?php echo get_cat_name($trns_options["mediaGalCatID"]); ?></span><a href="<?php echo get_category_link($trns_options["mediaGalCatID"]);?>"><?php echo $trns["viewall"]; ?></a></h2>
				<ul>
				<?php $que3=1; $query4 = new WP_Query();$query4->query('showposts=6&cat='.$trns_options["mediaGalCatID"]); ?>
				<?php while ($query4->have_posts()) : $query4->the_post(); ?>
					<li>
						<?php /* If it is  a video */ $key = 'video'; $themeta = get_post_meta($post->ID, $key, TRUE); if($themeta != '') { ?>
							<div class="thumb">	
								<object type="application/x-shockwave-flash" style="width:150px; height:113px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
								<param name="wmode" value="opaque" /><param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object> 
							</div>
							<div class="info">
								<p><?php the_title(); ?></p>
								<p class="moreVideo"><a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["playvideo"]; ?></a></p>
							</div>
						<?php } ?>
						
						<?php /* If it is NOT  a video */ $key = 'video'; $themeta = get_post_meta($post->ID, $key, TRUE); if(!$themeta) { ?>
							<div class="thumb">	
								<a class="highslide" onclick="return vz.expand(this)" href="<?php viva('trnsHover','1'); ?>">
									<img src="<?php viva('trnsMediaBar','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
									<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?><?php edit_post_link('Edit',' / ',''); ?>
								</a>
							</div>
							<div class="info">
								<p><?php the_title(); ?></p>
								<p class="morePhoto"><a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmedia"]; ?></a></p>
							</div>
						<?php } ?>
					</li>
				<?php endwhile; wp_reset_query(); ?>
				</ul>
			<?php endif; ?>
		</div><!-- /videos -->
		<?php } ?>
		
		<div id="primaryBottom">
			<div id="primaryBottomSidebar">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomAd1') ) : ?>
				<?php endif; ?>
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomAd_R') ) : ?>
					<?php include( TEMPLATEPATH . '/Ad300x250MainPageMid.php' ); ?>
				<?php endif; ?>
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomAd2') ) : ?>
				<?php endif; ?>
			</div>
			<div id="primaryBottomTabs">	
				<ul id="primaryBottomTabs_title">
					<li><a href="#" class="selected" rel="priBotTab1"><?php if ( $trns_options["tabA1"] <> "" ) { echo $trns_options["tabA1"]; } else { echo get_cat_name($trns_options["feaTab1CatID"]); } ?></a></li>
					<li><a href="#" rel="priBotTab2"><?php if ( $trns_options["tabA2"] <> "" ) { echo $trns_options["tabA2"]; } else { echo get_cat_name($trns_options["feaTab2CatID"]); } ?></a></li>
					<li><a href="#" rel="priBotTab3"><?php if ( $trns_options["tabA3"] <> "" ) { echo $trns_options["tabA3"]; } else { echo get_cat_name($trns_options["feaTab3CatID"]); } ?></a></li>
					<li><a href="#" rel="priBotTab4"><?php if ( $trns_options["tabA4"] <> "" ) { echo $trns_options["tabA4"]; } else { echo get_cat_name($trns_options["feaTab4CatID"]); } ?></a></li>
					<li><a href="#" rel="priBotTab5"><?php if ( $trns_options["tabA5"] <> "" ) { echo $trns_options["tabA5"]; } else { echo get_cat_name($trns_options["feaTab5CatID"]); } ?></a></li>
				</ul>
				<div id="primaryBottomTabs_body">
					<!-- Tab 1 -->
					<div id="priBotTab1">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomTab1_R') ) : ?>
							<?php $que6=1; $query6 = new WP_Query();$query6->query('showposts=1&cat='.$trns_options["feaTab1CatID"]); ?>
							<?php while ($query6->have_posts()) : $query6->the_post(); ?>
								<div class="text">
									<h2 class="postTitle"><a href="<?php /* Do not use rel=bookmark for titles of tab content, that will break tabbing */ the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 55); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
								<div class="imgThumb">
									<a href="<?php the_permalink() ?>"><img src="<?php viva('trnsMidTab1','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
								</div>
							<?php $que6++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div>
					
					<!-- Tab 2 -->
					<div id="priBotTab2">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomTab2_R') ) : ?>
							<?php $que7=1; $query7 = new WP_Query();$query7->query('showposts=1&cat='.$trns_options["feaTab2CatID"]); ?>
							<?php while ($query7->have_posts()) : $query7->the_post(); ?>
								<div class="text">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 55); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
								<div class="imgThumb">
									<a href="<?php the_permalink() ?>"><img src="<?php viva('trnsMidTab2','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
								</div>
							<?php $que7++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div>
					
					<!-- Tab 3 -->
					<div id="priBotTab3">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomTab3_R') ) : ?>
							<?php $que8=1; $query8 = new WP_Query();$query8->query('showposts=1&cat='.$trns_options["feaTab3CatID"]); ?>
							<?php while ($query8->have_posts()) : $query8->the_post(); ?>
								<div class="text">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 55); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
								<div class="imgThumb">
									<a href="<?php the_permalink() ?>"><img src="<?php viva('trnsMidTab3','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
								</div>
							<?php $que8++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div>					
					
					<!-- Tab 4 -->
					<div id="priBotTab4">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomTab4_R') ) : ?>
							<?php $que9=1; $query9 = new WP_Query();$query9->query('showposts=1&cat='.$trns_options["feaTab4CatID"]); ?>
							<?php while ($query9->have_posts()) : $query9->the_post(); ?>
								<div class="text">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 55); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
								<div class="imgThumb">
									<a href="<?php the_permalink() ?>"><img src="<?php viva('trnsMidTab4','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
								</div>
							<?php $que9++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div>
					
					<!-- Tab 5 -->
					<div id="priBotTab5">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primaryBottomTab5_R') ) : ?>
							<?php $que10=1; $query10 = new WP_Query();$query10->query('showposts=1&cat='.$trns_options["feaTab5CatID"]); ?>
							<?php while ($query10->have_posts()) : $query10->the_post(); ?>
								<div class="text">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 55); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
								<div class="imgThumb">
									<a href="<?php the_permalink() ?>"><img src="<?php viva('trnsMidTab5','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
								</div>
							<?php $que10++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div>
					
				</div><!-- /primaryBottomTabs_body -->
				<script type="text/javascript">
					var primaryBottomTabs1=new ddtabcontent("primaryBottomTabs")
					primaryBottomTabs1.setpersist(true)
					primaryBottomTabs1.setselectedClassTarget("link")
					primaryBottomTabs1.init()
				</script>
			</div>
			<div class="clear"></div>
		</div><!-- End of primaryBottom -->
		
		<div class="clear"></div>
		<div id="home">
			<div id="home_cats">
				<div class="home_cat">
					<h2 class="homeCatTitle"><?php if ( $trns_options["topBoxTitle"] <> "" ) { echo $trns_options["topBoxTitle"]; } else { echo get_cat_name($trns_options["subNewsTopCatID"]); } ?></h2>
					<div class="home_cat_article left">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('subNewsLeftTop_R') ) : ?>
							<?php $que11=1; $query11 = new WP_Query();$query11->query('showposts='.$trns_options["postCountBot1"].'&cat='.$trns_options["subNewsTopCatID"]); ?>
							<?php while ($query11->have_posts()) : $query11->the_post(); ?>
								<div class="thumb"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php viva('trnsBot1Big','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a></div>
								<div class="featuredPost lastPost">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 30); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
							<?php $que11++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div><!-- /home_cat_article -->
					
					<div class="home_cat_list right">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('subNewsRightTop_R') ) : ?>
							<?php $que12=1; $query12 = new WP_Query();$query12->query('showposts='.$trns_options["postCountBot2"].'&offset='.$trns_options["postCountBot1"].'&cat='.$trns_options["subNewsTopCatID"]); ?>
							<?php while ($query12->have_posts()) : $query12->the_post(); ?>
								<div class="featuredPost<?php if ($que12 == $trns_options["postCountBot2"]) { ?> lastPost<?php } ?>">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
									<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php viva('trnsBot1Small','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="alignright"/></a>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 22); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
							<?php $que12++; endwhile; wp_reset_query(); ?>
						
							<?php $offset1 = $trns_options["postCountBot1"] + $trns_options["postCountBot2"]; ?>
						
							<ul>
							<?php $que13=1; $query13 = new WP_Query();$query13->query('showposts='.$trns_options["postCountBot3"].'&offset='.$offset1.'&cat='.$trns_options["subNewsTopCatID"]); ?>
							<?php while ($query13->have_posts()) : $query13->the_post(); ?>
								<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></li>
							<?php $que13++; endwhile; wp_reset_query(); ?>
							</ul>
						<?php endif; ?>
					</div><!-- /home_cat_list -->
				</div><!-- /home_cat -->
				
				<div class="home_cat">
					<h2 class="homeCatTitle"><?php if ( $trns_options["botBoxTitle"] <> "" ) { echo $trns_options["botBoxTitle"]; } else { echo get_cat_name($trns_options["subNewsBotCatID"]); } ?></h2>
					<div class="home_cat_list left">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('subNewsLeftBottom_R') ) : ?>
							<?php $que12=1; $query12 = new WP_Query();$query12->query('showposts='.$trns_options["postCountBot4"].'&offset='.$trns_options["postCountBot6"].'&cat='.$trns_options["subNewsBotCatID"]); ?>
							<?php while ($query12->have_posts()) : $query12->the_post(); ?>
								<div class="featuredPost<?php if ($que12 == $trns_options["postCountBot4"]) { ?> lastPost<?php } ?>">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
									<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php viva('trnsBot2Small','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" class="alignleft"/></a>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 22); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
							<?php $que12++; endwhile; wp_reset_query(); ?>
						
							<?php $offset2 = $trns_options["postCountBot4"] + $trns_options["postCountBot6"]; ?>
			
							<ul>
							<?php $que13=1; $query13 = new WP_Query();$query13->query('showposts='.$trns_options["postCountBot5"].'&offset='.$offset2.'&cat='.$trns_options["subNewsBotCatID"]); ?>
							<?php while ($query13->have_posts()) : $query13->the_post(); ?>
								<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></li>
							<?php $que13++; endwhile; wp_reset_query(); ?>
							</ul>
						<?php endif; ?>
					</div><!-- /home_cat_list -->
					
					<div class="home_cat_article right">
						<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('subNewsRightBottom_R') ) : ?>
							<?php $que11=1; $query11 = new WP_Query();$query11->query('showposts='.$trns_options["postCountBot6"].'&cat='.$trns_options["subNewsBotCatID"]); ?>
							<?php while ($query11->have_posts()) : $query11->the_post(); ?>
								<div class="thumb"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php viva('trnsBot2Big','1'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a></div>
								<div class="featuredPost lastPost">
									<h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
									<p><?php if($trns_options['enableAName'] == 1) { ?><span class="author"><?php the_author_posts_link(); ?></span><?php } ?> <?php if($trns_options['enableDate'] == 1) { ?><span class="date"><?php the_time($trns_options["timeFormat"]); ?> |<?php } ?></span> <?php print string_limit_words(get_the_excerpt(), 30); ?>...</p>
									<div class="clear"></div>
									<span class="featuredPostMeta"><?php the_time($trns_options["dateFormat"]) ?> / <?php comments_popup_link(__($trns["nocomment"]), __($trns['comment1']), __($trns['comments']));?> / <a href="<?php the_permalink() ?>" rel="bookmark"><?php echo $trns["readmore"]; ?></a><?php edit_post_link('Edit',' / ',''); ?></span>
								</div>
							<?php $que11++; endwhile; wp_reset_query(); ?>
						<?php endif; ?>
					</div><!-- /home_cat_article -->					
				</div><!-- /home_cat -->
			</div><!-- /home_cats -->
			
			<div id="home_sidebar">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-bottomSidebar1') ) : ?>
				<?php endif; ?>
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-bottomSidebar_R') ) : ?>
				<?php include( TEMPLATEPATH . '/sidebarBottom.php' ); ?>
				<?php endif; ?>
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Mainpage-bottomSidebar2') ) : ?>
				<?php endif; ?>
			</div><!-- /home_sidebar -->
		</div><!-- /home -->
	</div> <!-- End of contentBody -->
	
	<?php get_footer(); ?>
</div><!-- End of Wrapper -->

</body>
</html>